//
//  YSL_FlyweightTicketFactory.swift
//  ArchitectGenerics
//
//  Created by 姚胜龙 on 2017/6/20.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

import UIKit

//享元模式创建火车票对象
class YSL_FlyweightTicketFactory: NSObject {

    class func ticket(from:String, to:String) -> YSL_FlyweightProtocol {
        return YSL_FlyweightTicket(from: from, to: to)
    }
}
